package org.anupta.game.server.game.packet.account.character.life;

import org.anupta.game.main.Main;
import org.anupta.game.server.game.client.GameClient;
import org.anupta.game.server.game.packet.GamePacket;

public class LifeTimerStart extends GamePacket {
	private int interv = 0;
	
	public LifeTimerStart(GameClient client,int interval) {
		super(client);
		this.interv = interval;
		pack();
		doPacket();
	}

	@Override
	public void unpack() {
	}

	@Override
	public void pack() {
		packetOut.append("ILS").append(interv);
	}

	@Override
	public void doPacket() {
		client.send(packetOut.toString());
		client.getPlayer().getSitTimer().start();
		Main.out.println(new StringBuilder("LifeTimerStart sended to : ").append(client.getIp()).toString());
	}
}
